// 单位选项
export const UNIT_OPTIONS = [{
  value: 1,
  label: '根'
},
{
  value: 2,
  label: '台'
},
{
  value: 3,
  label: '支'
},
{
  value: 4,
  label: '个'
},
{
  value: 5,
  label: '套'
},
{
  value: 6,
  label: '只'
},
{
  value: 7,
  label: '卷'
},
{
  value: 8,
  label: '粒'
},
{
  value: 9,
  label: '包'
},
{
  value: 10,
  label: '副'
},
{
  value: 11,
  label: '块'
},
{
  value: 12,
  label: '片'
},
{
  value: 13,
  label: '把'
},
{
  value: 14,
  label: '张'
},
{
  value: 15,
  label: '袋'
},
{
  value: 16,
  label: '桶'
},
{
  value: 17,
  label: '条'
},
{
  value: 18,
  label: '本'
}
]
// 产品大类
export const PRODUCT_CATEGORY = {
  1: '高值',
  2: '低值',
  3: '试剂',
  4: '设备',
  5: '低值'
}
// 管理分类
export const PRODUCT_MANAGE_CATEGORY = {
  1: 'I类',
  2: 'II类',
  3: 'III类'
}
// 注册地
export const PRODUCT_REGISTER_TYPE = {
  0: '国产',
  1: '进口',
  2: '港澳台'
}
// 添加产品弹窗table列表
export const productListColumns = [{
  type: 'selection',
  width: '50'
},
{
  minWidth: '200',
  prop: 'companyCode',
  label: '配送商产品编码',
  showTooltipWhenOverflow: true
},
{
  minWidth: '200',
  prop: 'prodNameCn',
  label: '配送商产品名称',
  showTooltipWhenOverflow: true
},
{
  minWidth: '200',
  prop: 'spec',
  label: '规格',
  showTooltipWhenOverflow: true
}, {
  minWidth: '200',
  prop: 'model',
  label: '型号',
  showTooltipWhenOverflow: true
}, {
  minWidth: '150',
  prop: 'manufacturer',
  label: '生产厂家',
  showTooltipWhenOverflow: true
}, {
  minWidth: '200',
  prop: 'registrationNumber',
  label: '注册证号（或备案号）',
  showTooltipWhenOverflow: true
}, {
  width: '120',
  prop: 'price',
  label: '单价'
},
{
  width: '180',
  prop: 'purchaseNum',
  label: '数量'
},
{
  width: '140',
  prop: 'unit',
  label: '计量单位'
},
{
  minWidth: '120',
  prop: 'manageType',
  label: '管理分类',
  formatter: row => PRODUCT_MANAGE_CATEGORY[row.manageType]
}, {
  width: '120',
  prop: 'registerArea',
  label: '注册地',
  formatter: row => PRODUCT_REGISTER_TYPE[row.registerArea]
},
{
  width: '120',
  prop: 'upEnterpriseName',
  label: '生产厂家'
},
{
  width: '120',
  prop: 'productCategory',
  label: '产品大类',
  formatter: row => PRODUCT_CATEGORY[row.bigType]
},
{
  minWidth: '200',
  prop: 'platCode',
  label: '平台产品编码',
  showTooltipWhenOverflow: true
},
{
  minWidth: '200',
  prop: 'provincePlatCode',
  label: '省平台产品编码',
  showTooltipWhenOverflow: true
}
]
// 添加产品弹窗查询列表
export const productListSearchForm = [{
  key: 'manufacturer',
  title: '生产厂家',
  type: 'input',
  attr: {
    placeholder: '请输入'
  }
},
{
  key: 'registrationNumber',
  title: '注册证号',
  type: 'input',
  attr: {
    placeholder: '请输入'
  }
},
{
  key: 'deliveryOrderCode',
  title: '配送商产品编码',
  type: 'input',
  attr: {
    placeholder: '请输入'
  }
},
{
  key: 'itemCode',
  title: 'M平台编码',
  type: 'input',
  attr: {
    placeholder: '请输入'
  }
},
{
  key: 'idList',
  title: '配送商产品名称',
  type: 'input',
  attr: {
    placeholder: '请输入'
    // filterable: true,
    // remote: true
  }
}
]
